package com.bing.e3113;

import java.io.PipedWriter;

public class WriteThread extends Thread{

	private WriteData write;
	private PipedWriter out;
	
	public WriteThread(WriteData write,PipedWriter out){
		this.write=write;
		this.out=out;
	}
	
	@Override
	public void run(){
		write.writeMethod(out);
	}
}
